/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.commons.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * CheckSecurity
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: CheckSecurity.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CheckSecurity {
    /**
     * 检查认证
     *
     * @return boolean
     */
    boolean checkAuth() default true;

    /**
     * 检查权限
     *
     * @return boolean
     */
    boolean checkPermission() default true;
}
